import {Pipe, PipeTransform} from '@angular/core';

@Pipe({
  name: 'calendarFilter'
})
export class CalendarFilterPipe implements PipeTransform {

  transform(value: any[], date): any {
    if (date) {
      console.log(value, date);
      return value.filter(d => d.Produce_date === date);
    } else {
      return value;
    }
  }

}
